package com.foreknow.service;

import com.foreknow.entity.Department;
import com.foreknow.entity.DepartmentList;
import com.foreknow.entity.DepartmentModel;
import com.foreknow.entity.Deptcategoryid;

import java.util.List;

public interface DepartmentService {

    /**
     * 根据ID删除单
     * @param id
     * @return
     */
    int updateByPrimaryKey(Integer id);

    /**
     * 根据ID删除集合
     * @param id
     * @return
     */
    int updateByPrimaryKeyList(List<Integer> id);

    /**
     * 新增Department
     * @param record
     * @return
     */
    int insert(Department record);

    /**
     * 根据用户修改
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(Department record);

    /**
     * 根据ID查询
     * @param id
     * @return
     */
    DepartmentModel selectByPrimaryKey(Integer id);

    /**
     * 查询全部 (分页)
     * @return
     */
    List<DepartmentModel> SelectDepartmentAll(int pageNum,int pageSize);

    /**
     * 查询全部（不分页）
     * @return
     */
    List<DepartmentModel> SelectDepartmentAll();

    /**
     * 查询模糊缩写 (分页)
     * @param name
     * @return
     */
    public List<DepartmentModel> departmentFuzzyByName(int pageNum,int pageSize,String condition,String name);

    /**
     * 查询模糊缩写（不分页）
     * @param name
     * @return
     */
    public List<DepartmentModel> departmentFuzzyByName(String condition,String name);

    /**
     * 查询科室列表
     * @return
     */
    List<Deptcategoryid> SelectDeptcategoryid();

    /**
     * 查询科室明细列表
     * @return
     */
    List<DepartmentList> SelectDepartmentList(Integer id);



    /**
     * 全部
     * @return
     */
    List<Department> DPlist();
}
